/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package feesmodule.services;

import feesmodule.domain.Area;
import feesmodule.domain.Jurisdiction;
import feesmodule.domain.JurisdictionServices;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

/**
 *
 * @author Oleg
 */
public class MockDataService implements IDataService {

    public Collection<Area> getAreaDefinitions() {

        List<Area> result = new ArrayList<Area>();
        Area domestic = new Area();
        domestic.setName("Domestic");
        domestic.setId(1);

        Jurisdiction austria = new Jurisdiction();
        austria.setName("Austria");
        austria.setId(1);

        Jurisdiction germany = new Jurisdiction();
        germany.setName("Germany");
        germany.setId(2);
        domestic.addJurisdiction(austria);
        domestic.addJurisdiction(germany);
        result.add(domestic);
        return result;
    }

    public Jurisdiction getJurisdiction(String name) {
        Jurisdiction result = new  Jurisdiction();
        result.setName("Austria");
        result.setId(1);
        return result;
    }

    public List<JurisdictionServices> getServicesForJurisdiction(int jurisdictionId) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

}
